{extend name="public:layout" /}

{block name="title"}
	<title>{:site('siteName')}-基本信息</title>
{/block}

{block name="css"}
	<link rel="stylesheet" type="text/css" href="__STATIC__/{$theme}/css/user.css">
{/block}

{block name="content"}
	<div class="layui-main">
		<div class="user-main">
			<div class="user-left">
				{include file="public:user" index="1" /}
			</div>
			<div class="user-right">
				<div class="layui-tab layui-tab-brief">
					<ul class="layui-tab-title">
						<li class="layui-this">基本信息</li>
					</ul>
					<div class="layui-tab-content">
						<form class="layui-form user-data" action="">
							<div class="layui-form-item">
							    <label class="layui-form-label">用户名</label>
							    <div class="layui-input-inline">
							    	<input type="text" name="" value="{$user->username}" readonly="readonly" class="layui-input">
							    </div>
							    {gt name="$user->vip" value="0"}
							    <button class="layui-btn layui-btn-danger layui-btn-mini mini">VIP</button>
							    {/gt}
							    {eq name="$user->agent" value="1"}
							    <button class="layui-btn layui-btn-normal layui-btn-mini mini">代理</button>
							    {/eq}
							</div>
							<div class="layui-form-item">
							    <label class="layui-form-label">昵称</label>
							    <div class="layui-input-inline">
							    	<input type="text" name="nickname" value="{$user->nickname}" class="layui-input">
							    </div>
							    <div class="layui-form-mid layui-word-aux">设置后不可修改。</div>
							</div>
							<div class="layui-form-item">
							    <label class="layui-form-label">姓名</label>
							    <div class="layui-input-inline">
							    	<input type="text" name="realname" value="{$user->realname}" lay-verify="required" class="layui-input">
							    </div>
							    <div class="layui-form-mid layui-word-aux">乱填可能导致提现失败。</div>
							</div>
							<div class="layui-form-item">
							    <label class="layui-form-label">身份证号</label>
							    <div class="layui-input-inline">
							    	<input type="text" name="identity" value="{$user->identity}" lay-verify="required" class="layui-input">
							    </div>
							    <div class="layui-form-mid layui-word-aux">请填写15或18位身份证号</div>
							</div>
							<div class="layui-form-item">
							    <label class="layui-form-label">手机号</label>
							    <div class="layui-input-inline">
							    	<input type="text" name="" value="{$user->mobile}" readonly="readonly" class="layui-input">
							    </div>
							    <a href="" class="layui-btn layui-btn-small layui-btn-main small">更换</a>
							</div>
							<div class="layui-form-item">
							    <label class="layui-form-label">邮箱地址</label>
							    <div class="layui-input-inline">
							    	<input type="text" name="email" value="{$user->email}" lay-verify="required" class="layui-input">
							    </div>
							    {if empty($user->email)}
							    <a href="" class="layui-btn layui-btn-small layui-btn-primary small">绑定邮箱</a>
							    {else /}
							    <a href="" class="layui-btn layui-btn-small layui-btn-disabled small">验证</a>
							    {/if}
							</div>
							<div class="layui-form-item">
							    <label class="layui-form-label">QQ号</label>
							    <div class="layui-input-inline">
							    	<input type="text" name="qq" value="{$user->qq}" lay-verify="required" class="layui-input">
							    </div>
							    <div class="layui-form-mid layui-word-aux">方便客服联系。</div>
							</div>
							<div class="layui-form-item">
							    <label class="layui-form-label">微信号</label>
							    <div class="layui-input-inline">
							    	<input type="text" name="wechat" value="{$user->wechat}" class="layui-input">
							    </div>
							    <div class="layui-form-mid layui-word-aux">方便客服联系。</div>
							</div>
							<div class="layui-form-item">
							    <label class="layui-form-label">支付宝</label>
							    <div class="layui-input-inline">
							    	<input type="text" name="alipay" value="{$user->alipay}" lay-verify="required" class="layui-input">
							    </div>
							    <div class="layui-form-mid layui-word-aux">支付宝必须和姓名一致。</div>
							</div>
							<div class="layui-form-item">
							    <label class="layui-form-label">开户行</label>
							    <div class="layui-input-inline">
							    	<input type="text" name="bank" value="{$user->bank}" class="layui-input">
							    </div>
							    <div class="layui-form-mid layui-word-aux">请填写详细的开户行地址。</div>
							</div>
							<div class="layui-form-item">
							    <label class="layui-form-label">卡号</label>
							    <div class="layui-input-inline">
							    	<input type="text" name="bank_card" value="{$user->bank_card}" class="layui-input">
							    </div>
							    <div class="layui-form-mid layui-word-aux">请输入银行卡号，银行卡所有人和姓名一致。</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label"></label>
							    <div class="layui-input-inline">
							    	<input type="hidden" name="id" value="{$user->id}">
							    	<input type="hidden" name="__token__" value="{$Request.token}" />
							    	<button class="layui-btn layui-btn-main" lay-submit>确定</button>
							    </div>
							</div>
						</form>
					</div>
				</div> 
			</div>
		</div>
	</div>
{/block}

{block name="script"}

{/block}